package com.cqwu.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Consult entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "consult", catalog = "common")
public class Consult implements java.io.Serializable {

	// Fields

	private Integer id;
	private short oneLevelType;
	private short twoLevelType;
	private String title;
	private String answer;

	// Constructors

	/** default constructor */
	public Consult() {
	}

	/** full constructor */
	public Consult(short oneLevelType, short twoLevelType, String title,
			String answer) {
		this.oneLevelType = oneLevelType;
		this.twoLevelType = twoLevelType;
		this.title = title;
		this.answer = answer;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "oneLevelType", nullable = false)
	public short getOneLevelType() {
		return this.oneLevelType;
	}

	public void setOneLevelType(short oneLevelType) {
		this.oneLevelType = oneLevelType;
	}

	@Column(name = "twoLevelType", nullable = false)
	public short getTwoLevelType() {
		return this.twoLevelType;
	}

	public void setTwoLevelType(short twoLevelType) {
		this.twoLevelType = twoLevelType;
	}

	@Column(name = "title", nullable = false, length = 100)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "answer", nullable = false, length = 65535)
	public String getAnswer() {
		return this.answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

}